import request from '@/utils/request'

// 查询站点列表
export function listStops(query) {
  return request({
    url: '/system/stops/list',
    method: 'get',
    params: query
  })
}

// 查询站点详细
export function getStops(id) {
  return request({
    url: '/system/stops/' + id,
    method: 'get'
  })
}

// 新增站点
export function addStops(data) {
  return request({
    url: '/system/stops',
    method: 'post',
    data: data
  })
}

// 修改站点
export function updateStops(data) {
  return request({
    url: '/system/stops',
    method: 'put',
    data: data
  })
}

// 删除站点
export function delStops(id) {
  return request({
    url: '/system/stops/' + id,
    method: 'delete'
  })
}
